<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>node</title>
	<style type="text/css">
	#box{
		width:200px;
		height:200px;
		background:red url() 0 0 no-repeat;
	}
	#box1{
		width:200px;
		height:200px;
		background:#B97A57 url() 0 0 no-repeat;
	}
	#son{
		width:100px;
		height:100px;
		background:#B97A57 url() 0 0 no-repeat;
	}
	</style>
	<script type="text/javascript">
	window.onload=function(){
		var son=document.getElementById('son');
		     //son.innerHTML='<div class="jion">学并思2<div>';
		var  xxx=document.getElementById('xxx');
	    var box1=document.getElementById('box1');
	     var colon=xxx.cloneNode('ture');
	         box1.appendChild(colon);
	         alert(box1.innerHTML);
		    // var p=document.createElement('p');
		       // p.innerHTML="<div class='jion'>好好学习</div>"
		       // son.insertBefore(p,xxx);
		        //son.removeChild(xxx);
		/*var box1 = document.getElementById('box1');
	    var add = document.getElementById('add');
	   add.onclick=function(){
	   	 var username=document.createElement('input');
	   	     username.type='text';
	   	    username.name='username';
	        box1.appendChild(username);
	   	box1.innerHTML='<input type="text" name="username"><input type="password" name="password"><input type="button" name="button">';*/

}
	</script>
</head>
<body>
<div  id="box2"></div>
<div  id="box">
	<div id="son">
		<p id='xxx'>学并思</p>
	</div>
</div>
<input type="button" value="增加" id='add'>
<div id="box1"></div>
	
</body>
</html>